package net.satiri.saversi;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class Biji 
{
	static int PUTIH = Color.WHITE;
	static int HITAM = Color.BLACK;
	
	private float diameter;
	private int warna;

	public Biji(int warna,float diameter)
	{
		this.warna = warna;
		this.diameter = diameter;
	}
	
	public Biji(int warna)
	{
		this.warna = warna;
		this.diameter = 10;
	}
	
	public void draw(Canvas canvas,int x, int y, Paint p)
	{
		canvas.drawColor(this.warna);
		canvas.drawCircle(x, y, diameter, p);
	}
	
	public void setWarna(int warna) 
	{
		this.warna = warna;
	}

	public int getWarna() 
	{
		return warna;
	}

	public void setDiameter(float diameter) {
		this.diameter = diameter;
	}

	public float getDiameter() {
		return diameter;
	}
	
}
